import Vue from 'vue'
import Router from 'vue-router'
import Index from './Index.vue'

import DataSourceListVue from './view/DataSourceList.vue';
import AddDataSourceVue from './view/AddDataSource.vue';
import EditDataSourceVue from './view/DataSourceInfo.vue';

Vue.use(Router)

//路由
export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/adddatasource',
      name: 'AddDataSource',
      component: AddDataSourceVue
    },
    {
      path: '/datasourcelist',
      name: 'DataSourceList',
      component: DataSourceListVue
    },
    {
      path: '/editdatasource',
      name: 'EditDataSource',
      component: EditDataSourceVue
    }
  ]
})
